package org.example.ioc.service.impl;

import org.example.ioc.dao.UserDao;
import org.example.ioc.service.UserService;

public class UserServiceImpl implements UserService {
    private  UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }
    //    public UserServiceImpl(UserDao userDao) {
//        this.userDao = userDao;
//    }

    @Override
    public void save() {

        System.out.println("UserService save method running");
        userDao.save();
    }
}
